﻿using ChiDao.Business.Service;
using ChiDao.Business.Service.AttachAttribute;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Ext.Net;

namespace ChiDao.Site.Web.Controllers
{
    [Export]
    public class BaklogTaskNewController : BaseController
    {
        [Import]
        public IBaklogTaskNewService BaklogTaskNewService { get; set; }

        [WebPage]
        public ActionResult BaklogTaskNew()
        {
            return View(BaklogTaskNewService.GetBaklogTaskNew(User.Identity.Name));
        }

        [DirectMethod]
        public ActionResult PopRequestProcessNew(string processCode)
        {
            Ext.Net.MVC.PartialViewResult result = null;
            switch (processCode)
            {
                case "HolidayRequest":
                    result = new Ext.Net.MVC.PartialViewResult { ViewName = "PopHolidayRequest" };
                    break;
            }
            return result;
        }
    }
}